home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / acpid.postinst < prev    next >
Encoding:
Text File  |  2007-03-14  |  496 b   |  21 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. # Remove shutdown and reboot links; this init script does not need them.
  6. if dpkg --compare-versions "$2" lt "1.0.4-5ubuntu2"; then
  7.     rm -f /etc/rc0.d/K21acpid /etc/rc6.d/K21acpid
  8. fi
  9.  
  10. # Automatically added by dh_installinit
  11. if [ -x "/etc/init.d/acpid" ]; then
  12.     update-rc.d acpid multiuser 10 21 >/dev/null
  13.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  14.         invoke-rc.d acpid start || exit $?
  15.     else
  16.         /etc/init.d/acpid start || exit $?
  17.     fi
  18. fi
  19. # End automatically added section
  20.  
  21.